<?php $this->load->view('admin/_header2') ?>
<script language="javascript" type="text/javascript" src="<?=site_url("Phome/get_lang")?>"></script>
<script language="javascript" type="text/javascript" src="<?php echo site_url('js/city.js')?>"></script>
<script language="javascript" type="text/javascript" src="<?php echo site_url('js/flight.js')?>"></script>
<table id="tablec" width=100% height=100% border=0 cellpadding=0 cellspacing=0 >
	<tr height=8% valign=top ><td style="background:#D2E0F2">
	<?
	echo form_open("admin/Airlines/queryFlight",array("id" => "formFlight","target" =>"query_context_order"));
	?>
	<table>
		<tr height=35>
			<td width=70 align=right >FromPort:</td>
			<td><select name="seFromCity" id="seFromCity" valtoname="txFromCity" valtocode="txFromCityCode"  class="selairport">
			</select><input type=hidden id="txFromCity" name="FromCity"  value="">
			<input id="txFromCityCode" name="FromCityCode" type="text" class="txairc" maxlength=3 value="" /></td>
			<td width=100 align=right >Flight Date:</td>
			<td width=390 ><input type="text"  name="FlightDate1" value="<?=Date("Y-m-d",strtotime("+1 day"))?>" class="txdatec" />
			<input type="text" name="FlightDate2" class="txdatec" />
			&nbsp;&nbsp;Flight No:<input type="text" name="FlightNumber" value="" class=txairc style="width:90px"></td>
			<td></td>
		</tr>	
		<tr height=35>
			<td align=right >DestPort:</td>
			<td><select name="seDestCity" id="seDestCity" valtoname="txDestCity" valtocode="txDestCityCode"  class="selairport"></select>
			<input type=hidden id="txDestCity" name="DestCity" value=""><input id="txDestCityCode"  name="DestCityCode" type="text" class="txairc" maxlength=3 value="" />
			<td align=right width=100>Plane Model:</td>
			<td width=385><input type="text" name="PlaneModel" value="" class=txairc style="width:90px" >	
			&nbsp;&nbsp;<input type=submit name="bbb" value="Search" />
			&nbsp;<input type=button name="bbb" value="Add Flight" onclick="addFlight();" /></td>
		</tr>	
	</table>
	<?
	echo form_close();
	?>
	
	</td></tr>
	
	<tr height=90% valign=top ><td>
		<iframe name=query_context_order width=100% height="100%" frameborder=0 ></iframe>
	</td></tr>
</table>
<div id="addwin" class="easyui-window" title="add Flight" closed="true" iconCls="icon-edit" style="width:680px;height:450px;padding:0px;background: #fafafa;">
	<div class="easyui-layout" fit="true">
		<div id="dvcontext" region="center" border="false" style="padding:10px;background:#fff;border:1px solid #ccc;">
			<iframe id="ifrawin" name="editcontext" src="" width=100% height=100% frameborder=0 ></iframe>
		</div>
	</div>
</div>
<script language="javascript">
	document.body.scroll="no";
	$(document).ready(function () {		
		$('.txdatec').datepick({monthsToShow:2});
		
	});
	function addFlight()
	{
		gd$("ifrawin").src="Airlines/addFlight";
		$('#addwin').window({title:"add Flight"}).window('open');
		
	}
	function closewindow()
	{
		$('#addwin').window('close');
	}
</script>

<?php $this->load->view('admin/_footer1') ?>